import { S } from '../../s';
import { PSMDAjaxControlParamImpl } from '../psmdajax-control-param-impl';
import { IPSDBAppMenuPortletPartParam } from './ipsdbapp-menu-portlet-part-param';
import { IPSDBAppViewPortletPartParam } from './ipsdbapp-view-portlet-part-param';
import { IPSDBContainerPortletPartParam } from './ipsdbcontainer-portlet-part-param';
import { IPSDBPortletPartParam } from './ipsdbportlet-part-param';
import { IPSDBRawItemPortletPartParam } from './ipsdbraw-item-portlet-part-param';
import { IPSDBSysPortletPartParam } from './ipsdbsys-portlet-part-param';

export class PSDBPortletPartParamImpl
  extends PSMDAjaxControlParamImpl
  implements
    IPSDBPortletPartParam,
    IPSDBAppMenuPortletPartParam,
    IPSDBSysPortletPartParam,
    IPSDBContainerPortletPartParam,
    IPSDBAppViewPortletPartParam,
    IPSDBRawItemPortletPartParam
{
  get cls(): string {
    return 'PSDBPortletPartParamImpl';
  }
  instanceof(cls: string): boolean {
    if (
      cls == S._156 ||
      cls == S._157 ||
      cls == S._158 ||
      cls == S._159 ||
      cls == S._15a ||
      cls == S._15b
    )
      return true;
    return super.instanceof(cls);
  }
}
